[mirrors]
http://www.stunnel.org/downloads/stunnel-5.02.tar.gz

[main]
filesize=590655
sha512=2f1c44b06188e3bd347b97544122eb9bc0c2a4227e6c4bab184ddef8a35300c09451d836dbd97de3d9656c69ff4ad8f0573e54cdb738bdd751388bd93d0417a6

[deps]
openssl

[build]
patch -p1 < "$K"/stunnel-libressl.patch || exit 1

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" \
LDFLAGS="$optldflags" \
CPPFLAGS=-D_GNU_SOURCE \
  ./configure -C --prefix="$butch_prefix" $xconfflags || exit 1
make -j$MAKE_THREADS || exit 1
make DESTDIR="$butch_install_dir" install || exit 1
